package com.xs.designs.duty_chain.annotation;

import org.springframework.stereotype.Service;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Service
public @interface Duty {
    /**
     * 标记具体业务场景
     * @return
     */
    String[] type()  ;

    /**
     * 排序：数值越小，排序越前
     * @return
     */
    int order() default 0;
}
